Skip to content

feat(UI): add CommitHistory component and integrate into CodeView#1114

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
yumeowo:main
Jun 13, 2025
Merged

feat(UI): add CommitHistory component and integrate into CodeView#1114
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
yumeowo:main

Conversation

@yumeowo

@yumeowo yumeowo commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

代码预览添加“CommitHistory”部分

@vercel

vercel Bot commented Jun 12, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2025 3:42pm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new CommitHistory component to display commit details within the code preview page. The changes include adding the CommitHistory component with a hard-coded commit info object, modifying layout parameters in the Blob page, and updating the code line dropdown menu and related CSS styling.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
moon/apps/web/pages/[org]/code/blob/[...path].tsx Integrated the CommitHistory component and adjusted layout spacing and orientation.
moon/apps/web/components/CodeView/CommitHistory.tsx Added the new CommitHistory component to display commit details.
moon/apps/web/components/CodeView/BlobView/CodeContent.tsx Updated the code line dropdown menu with new items and replaced an icon.
moon/apps/web/components/CodeView/BlobView/CodeContent.module.css Modified CSS properties for code line number alignment.
Comments suppressed due to low confidence (1)

moon/apps/web/components/CodeView/BlobView/CodeContent.module.css:4

  • [nitpick] Replacing text-align with flex alignment properties changes the alignment behavior; please verify that this update meets the intended layout requirements in all cases.
align-items: center;

Comment thread moon/apps/web/pages/[org]/code/blob/[...path].tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jun 13, 2025
Merged via the queue into gitmono-dev:main with commit 56bae11 Jun 13, 2025
5 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Mega UI 重构 Jun 13, 2025
@benjamin-747

Copy link
Copy Markdown
Collaborator

link #1093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants